<template>
    <div class="detals">
        <div class="header" style="background-color:white;">
            <el-page-header @back="goBack" content="案件详细信息" style="position: relative;top: 10px;left: 5px;">
            </el-page-header>
        </div>
        <el-divider></el-divider>
        <div class="message-box" style="margin-top: -20px">
            <el-header class="title" style="position: relative;top: 30px;left:-15px;font-size: 30px">
                <i class="el-icon-s-order">基本资料</i>
            </el-header>
            <el-divider></el-divider>
            <div class="message">
                <div class="grid-content bg-purple">案号：<br>{{law.caseNo}}</div>
                <div class="grid-content bg-purple">案件类型：<br>{{law.caseTypeName}}</div>
                <div class="grid-content bg-purple">服务时间：<br>{{law.collectionTime}}</div>
                <div class="grid-content bg-purple">服务内容：<br>{{law.caseCause}}</div>
                <div class="grid-content bg-purple">服务人次：<br>{{law.standard}}</div>
                <div class="grid-content bg-purple">委托人：<br>{{law.caseWtr}}</div>
                <div class="grid-content bg-purple">登记时间：<br>{{law.caseSubtime}}</div>
                <div class="grid-content bg-purple">服务律师：<br>{{law.caseAttorney}}</div>
                <div class="grid-content bg-purple">
                    收案审批状态：<br>
                    {{law.caseApproveStatus==1?'审批中':
                    law.caseApproveStatus==2?'审批不通过':'审批通过'}}
                </div>
                <div class="grid-content bg-purple">备注：<br>{{law.caseRemarks}}</div>
            </div>
        </div>
        <el-divider></el-divider>

        <div class="legal-box">
            <el-header class="title" style="position: relative;left:-15px;font-size: 30px">
                <i class="el-icon-s-order">律师业绩分成</i>
            </el-header>
            <el-table :data="cwPerformancesplitList" :border="true">
                <el-table-column prop="caseAttorney" label="类型"></el-table-column>
                <el-table-column prop="empName" label="姓名"></el-table-column>
                <el-table-column prop="cwPerformancesplit" label="业绩分成"></el-table-column>
                <el-table-column prop="cwSplitType" label="分成方式"></el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
    export default {
        props:['law','cwPerformancesplitList'],
        data() {
            return {}
        },
        methods:{
            goBack(){
                this.$emit('back')
            }
        }
    }
</script>

<style scoped>
    .detals{
        width: 100%;
    }
    .message-box,.legal-box{
        width: 100%;
    }
    .message{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-left: 8px;
    }
    .bg-purple {
        border: 1px solid gainsboro;
        width: 32%;
        padding-top: 15px;
        height: 70px;
        padding-left: 10px;
    }
</style>